package com.exception;

import com.broker.base.protocol.response.IRespErrorCode;

/**
 * @author Daizhiqiang <zqdai@sailfish.com.cn>
 * create by 2020/5/8 9:24
 * Description: easyim
 **/
public class ServiceException extends RuntimeException{
    private IRespErrorCode respErrorCode;
    public ServiceException(IRespErrorCode code) {
        super(String.format("%s,错误码:%d", code.getMsg(), code.getCode()));
        this.respErrorCode = code;
    }

    public IRespErrorCode getRespErrorCode() {
        return respErrorCode;
    }
}
